<!--
 * @Author: xjt
 * @Date: 2021-06-28 11:25:28
 * @LastEditTime: 2021-06-29 19:41:23
 * @Description: 运行监测总计
 * @LastEditors: xjt
-->
<template>
  <div class="totalPanel noBgColor">
    <!-- 城市统计 -->
    <cityPanel />
    <div class="right">
      <!-- 隔离人员 -->
      <personPanel />
      <!-- 隔离点 -->
      <placePanel />
      <!-- 工作人员 -->
      <staffPanel />
    </div>
    <!-- <Empty /> -->
  </div>
</template>

<script>
import cityPanel from './cityPanel.vue'
import personPanel from './personPanel.vue'
import placePanel from './placePanel.vue'
import staffPanel from './staffPanel.vue'
export default {
  name: 'totalPanel',
  components: {
    cityPanel,
    personPanel,
    placePanel,
    staffPanel
  }
}
</script>

<style lang="scss">
.totalPanel {
  display: flex;
  padding: 0 10px;
  justify-content: space-between;
  & > .left {
    width: calc(34% - 5px);
    display: flex;
    flex-direction: column;
    .panelItem {
      flex-grow: 1;
    }
  }
  & > .right {
    width: calc(66% - 5px);
  }
  background-color: #000f48;

  .numberTotal {
    padding: 25px 0 25px;
    text-align: center;
    font-size: 20px;
    mark {
      background-color: unset;
      font-weight: bold;
      color: #00fcff;
    }
  }
  .panelItem {
    background-color: rgba(0, 252, 255, 0.1);
    color: #fff;
  }
  .primaryTitle {
    text-align: center;
    margin: 40px auto 30px;
    strong {
      display: inline-block;
      position: relative;
      font-size: 24px;
      color: #fff;
      position: relative;
      line-height: 1;
      &:before {
        content: "";
        width: 18px;
        height: 24px;
        background-color: #00fcff;
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
      }
    }
  }
  .tipsItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 0;
    ul {
      flex-grow: 1;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
    .tipsTitle,
    .el-btn {
      flex-shrink: 0;
    }
    .el-btn {
      font-size: 17px;
    }
    .tipsTitle {
      padding-left: 50px;
      padding-right: 80px;
      span {
        position: relative;
        font-size: 20px;
        line-height: 1;
        &:before {
          content: "";
          width: 5px;
          height: 20px;
          background-color: #0060e5;
          position: absolute;
          top: 50%;
          left: -15px;
          transform: translateY(-50%);
        }
      }
    }
    li {
      font-size: 16px;
      .datetime {
        position: relative;
        &:before {
          content: "";
          width: 10px;
          height: 10px;
          background-color: #0060e5;
          border-radius: 50%;
          position: absolute;
          top: 50%;
          left: -20px;
          transform: translateY(-50%);
        }
      }
    }
  }
  .listPanel {
    padding-left: 25px;
    .title {
      color: #ff8b24;
      font-size: 20px;
      line-height: 1;
      padding: 16px 0 22px;
    }
    .attrs {
      margin-bottom: 15px;
      font-size: 16px;
      mark {
        font-size: 18px;
      }
    }
  }
  .numberPanel {
    .numberPanelTop {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      line-height: 1;
      .num {
        font-size: 32px;
        color: #00eaff;
        line-height: 28px;
      }
      .unit {
        font-size: 18px;
        left: 1;
      }
    }
    .numberPanelDown {
      text-align: center;
      font-size: 16px;
      margin-top: 10px;
    }
  }
  .wrapItem {
    background-color: rgba(0, 252, 255, 0.1);
  }
  .tipsItem {
    grid-column: 1 / 3;
    background-color: rgba(0, 252, 255, 0.1);
  }
}
</style>

<style lang="scss">
.noBgColor {
  .el-table {
    background-color: transparent;
    color: white;
  }
  .el-table th,
  .el-table tr,
  .el-table td {
    // 如果要增加竖线上方加上.el-table td
    border: 0;
    background-color: transparent;
    color: #fff;
  }
  // 鼠标滑过td上作用的样式，ie6不支持:hover伪类属性，如果是ie6要写成tr.over样式
  .el-table tbody tr:hover > td {
    background-color: transparent !important;
  }
  // 如果td没有颜色，可以去掉，这里加上保险
  .el-table__body tr.hover-row > td {
    background-color: transparent;
  }
  .el-table--border::after,
  .el-table--group::after,
  .el-table::before {
    background-color: transparent;
  }
}
</style>